package br.com.upper.business;

import java.util.List;

import br.com.upper.dao.TransactionDAO;
import br.com.upper.entity.Transaction;

public class TransactionBO implements ITransactionBO {

	private TransactionDAO transactionDAO;
	
	public TransactionBO() {
		this.transactionDAO = new TransactionDAO();
	}
	
	public void save(Transaction objeto) {
		this.transactionDAO.save(objeto);
	}
	
	public void delete(Transaction objeto) {
		this.transactionDAO.delete(objeto);
	}
	
	public Transaction findByID(Long id) {
		return this.transactionDAO.findByID(id);
	}
	
	public List<Transaction> findAll() {
		return this.transactionDAO.findAll();
	}
	
	public void deleteAll() {
		this.transactionDAO.deleteAll();
	}
	
}
